-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for typescript in the nodejs runtime #1225
Merged
joshuaauerbachwatson
merged 1 commit into
digitalocean:feature/serverless
from
joshuaauerbachwatson:typescript-support
Sep 7, 2022
Merged
Add support for typescript in the nodejs runtime #1225
joshuaauerbachwatson
merged 1 commit into
digitalocean:feature/serverless
from
joshuaauerbachwatson:typescript-support
Sep 7, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
joshuaauerbachwatson
changed the base branch from
main
to
feature/serverless
September 7, 2022 10:48
andrewsomething
approved these changes
Sep 7, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
andrewsomething
added a commit
that referenced
this pull request
Sep 27, 2022
* Add support for typescript in the nodejs runtime (#1225) * Eliminate plugin usage for sls fn invoke (#1226) * Add doctl serverless trigger support (for scheduled functions) (#1232) * Add support for triggers * Add lastRun field to trigger list output * Hide commands we won't be supporting in EA day 1 * Bump deployer version to pick up bug fix * Fix error handling in services related to triggers Many calls were not checking for errors. * Switch to latest API Change both the triggers command (native to doctl) and the deployer version (which affects the semantics of deploy/undeploy). * Pick up latest deployer (triggers bug fix) * Remove support for prototype API and clean up code * Fix unit tests * Fix misleading comment * Remove added complexity due to successive change * Add filtering by function when listing triggers * Fix omitted code in DeleteTrigger * Guard triggers get/list with status check Otherwise, the credentials read fails with a cryptic error instead of an informative one when you are not connected to a namespace. Co-authored-by: Andrew Starr-Bochicchio <[email protected]>
andrewsomething
added a commit
that referenced
this pull request
Oct 21, 2022
* Add support for typescript in the nodejs runtime (#1225) * Eliminate plugin usage for sls fn invoke (#1226) * Add doctl serverless trigger support (for scheduled functions) (#1232) * Add support for triggers * Add lastRun field to trigger list output * Hide commands we won't be supporting in EA day 1 * Bump deployer version to pick up bug fix * Fix error handling in services related to triggers Many calls were not checking for errors. * Switch to latest API Change both the triggers command (native to doctl) and the deployer version (which affects the semantics of deploy/undeploy). * Pick up latest deployer (triggers bug fix) * Remove support for prototype API and clean up code * Fix unit tests * Fix misleading comment * Remove added complexity due to successive change * Add filtering by function when listing triggers * Fix omitted code in DeleteTrigger * Guard triggers get/list with status check Otherwise, the credentials read fails with a cryptic error instead of an informative one when you are not connected to a namespace. * Eliminate plugin usage in 'doctl sls fn list' This completes the elimination of plugin usage in doctl sls fn and the functions.go source file. * Hidden flags enabling connection to dev clusters * Fix unit test (date handling is timezone specific) * Eliminate call to auth/current via the plugin * Commit changed test (screwed it up last time) * Remove accidental re-introduction of --beta flag I believe this happened in merge conflict resolution during the recent rebase. * Bump min nim version to incorporate small bug fix Affects what happens when a failure occurs in the middle of deleting functions and triggers together. * Avoid plugin in serverless activations [ get | result ] (#1270) * WIP for converting activations to direct OW flows * Finish recoding 'activations get' in native doctl Tests still to come * Convert the support for sls actv result Tests not converted yet * Generate latet mocks * Fix some comments * Use more realistic timestampes * Revise tests for new paths. Still no output check * Tests are now doing meaningful output comparison Fixed some bugs found once tests were really effective * Updates activation list command to use the whisk client instead of the nim plugin * Adds name filter to activations list * moved getActivationStatus to utils * re-generates mocks * made changes from PR review and updated the unit tests * Updates test * default to json output when the full flag is set * list command takes a function name not activation name * Updates the apache-go-client library and updates the tests to reflect the changes * Makes updates from PR review Co-authored-by: Andrew Starr-Bochicchio <[email protected]> Co-authored-by: Davi DeBarros <[email protected]> Co-authored-by: Davi DeBarros <[email protected]>
andrewsomething
added a commit
that referenced
this pull request
Oct 24, 2022
* Add support for typescript in the nodejs runtime (#1225) * Eliminate plugin usage for sls fn invoke (#1226) * Add doctl serverless trigger support (for scheduled functions) (#1232) * Add support for triggers * Add lastRun field to trigger list output * Hide commands we won't be supporting in EA day 1 * Bump deployer version to pick up bug fix * Fix error handling in services related to triggers Many calls were not checking for errors. * Switch to latest API Change both the triggers command (native to doctl) and the deployer version (which affects the semantics of deploy/undeploy). * Pick up latest deployer (triggers bug fix) * Remove support for prototype API and clean up code * Fix unit tests * Fix misleading comment * Remove added complexity due to successive change * Add filtering by function when listing triggers * Fix omitted code in DeleteTrigger * Guard triggers get/list with status check Otherwise, the credentials read fails with a cryptic error instead of an informative one when you are not connected to a namespace. * Eliminate plugin usage in 'doctl sls fn list' This completes the elimination of plugin usage in doctl sls fn and the functions.go source file. * Hidden flags enabling connection to dev clusters * Fix unit test (date handling is timezone specific) * Eliminate call to auth/current via the plugin * Commit changed test (screwed it up last time) * Remove accidental re-introduction of --beta flag I believe this happened in merge conflict resolution during the recent rebase. * Bump min nim version to incorporate small bug fix Affects what happens when a failure occurs in the middle of deleting functions and triggers together. * Avoid plugin in serverless activations [ get | result ] (#1270) * WIP for converting activations to direct OW flows * Finish recoding 'activations get' in native doctl Tests still to come * Convert the support for sls actv result Tests not converted yet * Generate latet mocks * Fix some comments * Use more realistic timestampes * Revise tests for new paths. Still no output check * Tests are now doing meaningful output comparison Fixed some bugs found once tests were really effective * Updates activation list command to use the whisk client instead of the nim plugin * Adds name filter to activations list * moved getActivationStatus to utils * re-generates mocks * made changes from PR review and updated the unit tests * Updates test * default to json output when the full flag is set * list command takes a function name not activation name * Updates the apache-go-client library and updates the tests to reflect the changes * Makes updates from PR review * Adds native implementation for sls activations logs * Adds comment * Hides limit flag, adds a new channel to return errors to the users, fixes bug with package filtering, and fixes the order we display logs * Updates the tests * uses MarkHidden func instead of direct value change * Makes changes suggested in the PR, fixes logic for filtering packages, removes both the timeout and only keeps the ticker * Removed waitgroup to simplify the poll logic * export GetActivationFunctionName function * fixed error from merge Co-authored-by: Joshua Auerbach <[email protected]> Co-authored-by: Andrew Starr-Bochicchio <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The set of supported languages in DigitalOcean Functions actually includes TypeScript. TypeScript does not require its own runtime but is supported by setting up the function project correctly to run in one of the
nodejs
runtimes.This change (1) corrects the "languages" display (which is actually organized by runtime) to stop assuming there will eventually be a TypeScript runtime but rather correctly indicating that TypeScript is supported in the
nodejs
runtime.(2) It also incorporates a later version of the serverless plugin which knows how to properly set up a functions project for Typescript and correctly associates the
.ts
file suffix with thenodejs
runtime.